package com.example.javadesign.adapter.general.interfaceadapter;


/**
 * @author 陳樂
 * @version 1.0.0
 * @ClassName Main.java
 * @Description TODO
 * @createTime 2022年09月04日 23:14:00
 */
public class Main {

    public static void main(String[] args) {

        Target adapter = new Adapter(new Adaptee()) {
            @Override
            public int request1() {
                return adaptee.specificRequest() / 10;
            }
        };

        int result = adapter.request1();
        System.out.println(result);
    }

}
